<template>
	<view>
		<view class="login bg-white">
			<u-field label="姓名" placeholder="" v-model="form.name"></u-field>
			<u-field label="银行卡号" placeholder="" v-model="form.card_no"></u-field>
		</view>
		
		<my-btn gold style="margin: 60rpx auto;" @click="submit">提交</my-btn>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					name: '',
					card_no: ''
				}
			};
		},
		methods: {
			submit() {
				this.$u.post('/finance/account/bank/set', this.form).then(res => {
					if (res.data.code==0) {
						this.$msg(res.data.msg, 1000, true).then(res => {
							this.$goto(1)
						})
					}
					this.$msg(res.data.msg)
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
